package com.free.dao;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2020/12/11  16:27
 * 描述:
 */
@Mapper
@Repository
public interface TestFreeDao {

    @Select("select * from base_user")
    public List<Map<String,Object>> list(Map<String, Object> mm);


    @Delete("delete from base_user where id=#{id}")
    public int delOne(String id);


    @Insert("insert into base_user(id,userName)values(#{id},#{userName})")
    public int insertOne(Map<String, Object> map);


    @Select("select * from base_user where id=#{id}")
    public Map<String,Object> getOne(String id);

}
